<template>
  <el-dialog v-model="show" title="证件额度" width="500" :before-close="handleClose">
    <div v-if="props.quotaData.length">
      <div v-for="item in props.quotaData" :key="item.id">{{item.cnName}}:{{item.certNum}}</div>
    </div>
    <div v-else>暂无证件额度</div>
    <template #footer>
      <div class="dialog-footer">
        <el-button type="primary" @click="handleClose">确定</el-button>
      </div>
    </template>
  </el-dialog>
</template>

<script setup>
import { ref, reactive } from "vue";

const props = defineProps({
  quotaData:Array
})
const $emit = defineEmits(['showQuotaEmit'])
const show = ref(true)
//关闭额度弹框
const handleClose = () => {
  $emit('showQuotaEmit')
}
</script>

<style scoped lang="scss">

</style>